package com.adaxi.adc.business.vehicletrip.mapper;

import com.adaxi.adc.business.vehicletrip.pojo.VehicleTripLocation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author 钟红树
* @description 针对表【adc_vehicle_trip_location(司机行程的实时位置信息表)】的数据库操作Mapper
* @createDate 2023-10-07 15:54:03
* @Entity com.adaxi.adc.business.vehicletrip.pojo.VehicleTripLocation
*/
public interface VehicleTripLocationMapper extends BaseMapper<VehicleTripLocation> {
    @Update("UPDATE adc_vehicle_trip_location SET  latitude = #{latitude} , longitude = #{longitude} ,timestamp = #{timestamp} WHERE vehicle_trip_id = #{vehicleTripId}")
    void updateLocal(VehicleTripLocation vehicleTripLocation);

    boolean isVehicleTripId(String vehicleTripId);
}




